package spring.j2024_11_17_2.wall.dao;

import org.springframework.stereotype.Component;
import spring.j2024_11_17_2.wall.model.Message;

import java.util.ArrayList;
import java.util.List;

@Component

public class MessageDao {
    private List<Message> list = new ArrayList<>() ;
    public void put(Message message){
        this.list.add(message) ;
    }
    public List<Message> getList(){
        return this.list ;
    }
}
